<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ModIframe
 *
 * @author EaDeveloper
 */
class ModIframe implements EaSoftModule {

    public $instanceName = "ModIframe";
    public $title = "ModIframe";

    public function getCssFiles() {

    }

    public function getJsFiles() {

    }

    public function getWindowTitle() {
        return $this->title;
    }

    public function getPath() {
        return CORE_PATH . "?module=$this->instanceName&p=g&" . AJAX_INDICATOR . "=true";
    }

    public function getPageFrame() {
        return "blank.html";
    }

    public function main() {
        switch (getParam("p")) {
            default: {
                    $path = $this->getPath();
?>
                  <iframe src="<?php echo $path; ?>" id="pantalla" allowtransparency="true" frameborder="0" width="100%" height="100%"></iframe>
<?php
                    break;
                }
            case "g": {
                    header("Location: " . $this->getPageFrame());
                    break;
                }
        }
    }
}
?>
